package velox.jcr.mapper;

public enum CascadeType { 
	ALL(true, true), 
	REMOVE(true, false), 
	PERSIST(false, true), 
	NONE(false, false);

	private boolean delete;
	private boolean update;
	
	private CascadeType(boolean delete, boolean update) {
		this.delete = delete;
		this.update = update;
	}
	
	public boolean isRemove() {
		return delete;
	}
	
	public boolean isPersist() {
		return update;
	}
}